package com.backstage.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import com.backstage.entity.po.SysUser;
import com.baomidou.mybatisplus.mapper.AutoMapper;
import com.baomidou.mybatisplus.plugins.pagination.Pagination;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author wangkun
 * @since 2017-11-16
 */
public interface SysUserMapper extends  AutoMapper<SysUser> {
  
	public SysUser findById(@Param("id") String id);
	
	public Integer insertByUser(SysUser sysUser);

	public SysUser findSysUserByUserCode(@Param("userCode")String userCode);
	
	@Select("selectUserList")
	public List<SysUser> selectUserList(Pagination page,String state);
	
	public List<SysUser> findAllUser();
		
}
